package ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-08-25
 * Time: 21:31
 */
public class Card {
    private String suit;//卡牌的形状
    private int rank;//卡牌的数字（1~13）

    public Card(String suit, int rank) {
        this.suit = suit;
        this.rank = rank;
    }

    @Override
    public String toString() {
        /*return "Card{" +
                "suit='" + suit + '\'' +
                ", rank=" + rank +
                '}';*/
        return "{" + suit + rank + "} ";
    }
}
